import mapModelColorGet from '@/utils/maputils/mapModelColorGet.js';

const SencelayerRenderer = {
  model_hightrenderer(objectids) {
    let model_hightrenderer = {
      type: "unique-value",
      field: "objectid",
      defaultLabel: "",
      defaultSymbol: {
        type: "mesh-3d",
        symbolLayers: [{
          type: "fill",
          material: {
            color: mapModelColorGet.basemapmodelColor(),
            colorMixMode: "replace"
          },
          edges: {
            type: 'solid',
            color: [0, 0, 0, 0.6],
            size: 1
          }
        }]
      },
      uniqueValueInfos: []
    };
    objectids.map(function (item, key, ary) {
      let uniquesymbol = {
        label: "OBJECTID",
        symbol: {
          type: "mesh-3d",
          symbolLayers: [{
            material: {
              color: [0, 255, 255, 1],
              colorMixMode: "tint"
            },
            type: "fill",
            edges: {
              type: "solid",
              color: [0, 0, 0, 0],
              transparency: 60,
              size: 1
            }
          }]
        },
        value: item
      }
      model_hightrenderer.uniqueValueInfos.push(uniquesymbol);
    });
    return model_hightrenderer;
  }
}
export default SencelayerRenderer;
